package com.itheima.demo02;

public class Test {
    //测试类
    public static void main(String[] args) {
        //创建运动员和教练对象
        PingPongBall ppb = new PingPongBall("马陇",34);
        System.out.println(ppb.getName() + "," + ppb.getAge());
        ppb.learn();
        ppb.speak();

        PingPongCoach ppc = new PingPongCoach("刘国梁",55);
        System.out.println(ppc.getName() + "," + ppc.getAge());
        ppc.speak();
        ppc.teach();
    }
}
